//
//  ResultSectionHeader.m
//  TrainTree
//
//  Created by wanghui on 2017/9/21.
//  Copyright © 2017年 YouYeShu. All rights reserved.
//

#import "ResultSectionHeader.h"
@interface ResultSectionHeader()
{

}
@end
@implementation ResultSectionHeader

- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier{

    self = [super initWithReuseIdentifier:reuseIdentifier];

    if (self) {
        UIView *view = [[UIView alloc]initWithFrame:CGRectMake(0, 0, ScreenWidth, 24)];
        view.backgroundColor = [UIColor whiteColor];
        self.label = [[UILabel alloc]initWithFrame:CGRectMake(16, 0, ScreenWidth - 16, 24)];
        self.label.font = [UIFont systemFontOfSize:12];
        self.label.textColor = rgb(74.0f, 74.0f, 74.0f);
        self.label.backgroundColor = [UIColor whiteColor];
        [self addSubview:view];
        [view addSubview:self.label];
    }
    return self;
}

//- (void)setLabel:(UILabel *)label
//{
//    _label.text = self.sectionTitle;
//}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
